package chapter04;

/**
 * Created by V5470-I5 on 2016/3/15.
 */
class Cloth2{
    String color;
    char size;
    Cloth2(String color,char size){
        this.color=color;
        this.size=size;
    }
}
public class Field2 {
    public static void main(String[] args)
    {
        Cloth2 sun =new Cloth2("red",'S');
        Cloth2 spring =new Cloth2("green",'M');
        System.out.printf("sun (%s,%c)%n",sun.color,sun.size);
        System.out.printf("spring (%s,%c)%n",spring.color,spring.size);
    }
}
